﻿<InfrastructureControls:TabItem x:Class="BlueMarble.Genesis.Common.Home.HomeView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:ActiveBackground="clr-namespace:BlueMarble.Genesis.Infrastructure.Background.Dynamic;assembly=BlueMarble.Genesis.Infrastructure"
    xmlns:InfrastructureControls="clr-namespace:BlueMarble.Genesis.Infrastructure.Controls;assembly=BlueMarble.Genesis.Infrastructure"
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300"
    Style="{StaticResource BlackBarTabItemResourceKey}"
    Header="Home">

    <InfrastructureControls:TabItem.Resources>
        <Storyboard RepeatBehavior="Forever" x:Key="CycleBackgroundStoryboardResource" BeginTime="0:0:0">
            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(ActiveBackground:Background.BackgroundLayerBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="HomeTabItemActiveBackground">
                <EasingColorKeyFrame KeyTime="0:0:00" Value="#FF007C59"/>
                <EasingColorKeyFrame KeyTime="0:1:00" Value="#FF000000"/>
                <EasingColorKeyFrame KeyTime="0:2:00" Value="#FFFFFFFF"/>
                <EasingColorKeyFrame KeyTime="0:3:00" Value="#FFFCB514"/>
                <EasingColorKeyFrame KeyTime="0:4:00" Value="#FFE23D28"/>
                <EasingColorKeyFrame KeyTime="0:5:00" Value="#FF0C1C8C"/>
                <EasingColorKeyFrame KeyTime="0:6:00" Value="#FF007C59"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </InfrastructureControls:TabItem.Resources>
    <Grid>
        <ActiveBackground:Background
                        x:Name="HomeTabItemActiveBackground">
            <ActiveBackground:Background.Shape>
                <ActiveBackground:Rectangle />
            </ActiveBackground:Background.Shape>
            <ActiveBackground:Background.BackgroundLayerBrush>
                <RadialGradientBrush GradientOrigin="0.1,0.75" Center="0.2,0.5">
                    <GradientStop Color="Azure" Offset="0"/>
                    <GradientStop Color="#FF408B39" Offset="1"/>
                </RadialGradientBrush>
            </ActiveBackground:Background.BackgroundLayerBrush>
            <ActiveBackground:Background.Content>
                <StackPanel>
                    <TextBlock Text="Home Tab" FontSize="20"/>
                    <Button Content="Login" Click="Button_Click" />
                </StackPanel>
            </ActiveBackground:Background.Content>
        </ActiveBackground:Background>
    </Grid>
</InfrastructureControls:TabItem>
